package cn.cdeden.aiqa.domain.bo;

import cn.cdeden.aiqa.domain.WikiPrompt;
import cn.cdeden.common.core.validate.AddGroup;
import cn.cdeden.common.core.validate.EditGroup;
import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 提示词管理业务对象 wiki_prompt
 *
 * @author Nick
 * @date 2025-01-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WikiPrompt.class, reverseConvertGenerate = false)
public class WikiPromptBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String desc;

    /**
     * 提示词
     */
    @NotBlank(message = "提示词不能为空", groups = { AddGroup.class, EditGroup.class })
    private String prompt;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 知识库应用ID
     */
//    @NotNull(message = "知识库应用ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long appId;


}
